/**
 *                            License
 * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS  
 * CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). 
 * THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.  
 * ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR  
 * COPYRIGHT LAW IS PROHIBITED.
 * 
 * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND  
 * AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE  
 * MAY BE CONSIDERED TO BE A CONTRACT,
 * THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED 
 * HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
 * 
 */
package com.lineage.server.templates;

/**
 * Class <code>L1Drop</code> 数据库模版:掉落相关(物品).
 * 
 * @author jrwz
 * @version 2012-6-16上午09:25:05
 * @see com.lineage.server.templates
 * @since JDK1.7
 */
public final class L1Drop {

    /** 怪物编号. */
    private final int dropMobId;
    /** 道具编号. */
    private final int dropItemId;
    /** 最小数量. */
    private final int dropMin;
    /** 最大数量. */
    private final int dropMax;
    /** 掉落几率(0-1000000). */
    private final int dropChance;

    /**
     * 数据库模版:掉落相关(物品).
     * 
     * @param mobId
     *            怪物编号
     * @param itemId
     *            道具编号
     * @param min
     *            最小数量
     * @param max
     *            最大数量
     * @param chance
     *            掉落几率
     */
    public L1Drop(final int mobId, final int itemId, final int min,
            final int max, final int chance) {
        this.dropMobId = mobId;
        this.dropItemId = itemId;
        this.dropMin = min;
        this.dropMax = max;
        this.dropChance = chance;
    }

    /**
     * 取得掉落几率(0-1000000).
     * 
     * @return 掉落几率(0-1000000)
     */
    public int getChance() {
        return this.dropChance;
    }

    /**
     * 取得道具编号.
     * 
     * @return 道具编号
     */
    public int getItemid() {
        return this.dropItemId;
    }

    /**
     * 取得最大数量.
     * 
     * @return 最大数量
     */
    public int getMax() {
        return this.dropMax;
    }

    /**
     * 取得最小数量.
     * 
     * @return 最小数量
     */
    public int getMin() {
        return this.dropMin;
    }

    /**
     * 取得怪物编号.
     * 
     * @return 怪物编号
     */
    public int getMobid() {
        return this.dropMobId;
    }
}
